import { request } from '@/utils/request.js'

export default {
  /**
   * 上傳圖片文件，返回圖片URL
   * @param {object} params
   * @returns
   */
  imageUpload(params = {}, config) {
    return request({
      url: '/api/v1/admin/image/upload',
      method: 'post',
      data: params,
      config
    })
  }
}
